FROM nginx

MAINTAINER zouzou

#RUN rm /etc/nginx/nginx.conf
#RUN rm /etc/nginx/conf.d/default.conf

ADD nginx.conf /etc/nginx/
#ADD default.conf /etc/nginx/conf.d/
ADD private.key /path/to/
ADD cert.crt /path/to/
COPY dist/ /usr/share/nginx/html/

RUN chmod -R 775 /path/to/
RUN chmod -R 775 /usr/share/nginx/html/

# 暴露 Nginx 默认端口
EXPOSE 80


# 启动 Nginx 服务
CMD ["nginx", "-g", "daemon off;"]
